﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using TyMES.Model.Record;
using TyMES.Model;

namespace TyMES.ViewModel.Record.BadProductRecordVMs
{
    public partial class BadProductRecordBatchVM : BaseBatchVM<BadProductRecord, BadProductRecord_BatchEdit>
    {
        public BadProductRecordBatchVM()
        {
            ListVM = new BadProductRecordListVM();
            LinkedVM = new BadProductRecord_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class BadProductRecord_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._BadProductRecord._factoryCode")]
        public string FactoryCode { get; set; }
        [Display(Name = "_Model._BadProductRecord._lineCode")]
        public string LineCode { get; set; }
        [Display(Name = "_Model._BadProductRecord._snNumber")]
        public string SnNumber { get; set; }
        [Display(Name = "_Model._BadProductRecord._stationCode")]
        public string StationCode { get; set; }
        [Display(Name = "_Model._BadProductRecord._materialCode")]
        public string MaterialCode { get; set; }
        [Display(Name = "_Model._BadProductRecord._materialName")]
        public string MaterialName { get; set; }
        [Display(Name = "_Model._BadProductRecord._materialVersion")]
        public string MaterialVersion { get; set; }
        [Display(Name = "_Model._BadProductRecord._operationCode")]
        public string OperationCode { get; set; }
        [Display(Name = "_Model._BadProductRecord._defectSource")]
        public string DefectSource { get; set; }
        [Display(Name = "_Model._BadProductRecord._UploadFlag")]
        public bool? UploadFlag { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}